﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="BoxScore.Anotador.Index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="lateral1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="lateral2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="lateral3" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenido" runat="server">

<h2 class="title">
Anotadores
</h2>


    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource1">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("team_visitor", "{0}") %>'></asp:Label>
                    Vs. 
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("team_hc", "{0}") %>'></asp:Label>
                    
                    <br />
                    <b>Fecha:</b>
                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("scheduled", "{0:g}") %>'></asp:Label>
                    <br />
                    
                    <b>Estadio: </b>
                    
                    
                    <asp:HiddenField ID="HiddenField1" runat="server" 
                        Value='<%# Eval("id_stadium", "{0}") %>' />
                        
                        
                    <asp:DetailsView ID="DetailsView2" runat="server"
                        DataSourceID="ObjectDataSource2" AutoGenerateRows="False" GridLines="None">
                        <Fields>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("name", "{0}") %>'></asp:Label>
                                </ItemTemplate>
                                <ControlStyle BorderStyle="None" />
                            </asp:TemplateField>
                        </Fields>
                    </asp:DetailsView>
                    
                    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                        SelectMethod="getEstadio" TypeName="BoxScore.Model.BoxScoreBD">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="HiddenField1" Name="id" PropertyName="Value" 
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    

                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# "~/Juego/CargarResultado.aspx?juego=" +Eval("id", "{0}") %>'>Cargar Resultados</asp:HyperLink>
                    <br />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>





    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="getGamesNoPlayedByAnotador" TypeName="BoxScore.Model.BoxScoreBD">
    </asp:ObjectDataSource>





</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="resultados" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="proximos" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="publicidadAjena" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="publicidad" runat="server">
</asp:Content>
